package com.apimanage.auth.config;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.autoconfigure.AutoConfigureAfter;
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
import org.springframework.context.annotation.Configuration;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * MyBatis-Plus配置类
 * 解决Spring Boot 3.x与MyBatis-Plus的兼容性问题
 */
@Configuration
@MapperScan("com.apimanage.auth.mapper")
@EnableTransactionManagement
@AutoConfigureAfter(name = "org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration")
public class MyBatisPlusConfig {
    // 简化配置，让Spring Boot和MyBatis-Plus的自动配置机制发挥作用
    // 避免手动配置可能带来的兼容性问题
}